﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>@ViewBag.Title</title>
    <link rel="shortcut icon" href="/Content/Frame/Images/Favicon.ico" />
@{
    if (ViewBag.jQuery != null && ViewBag.jQuery)
    {
    <script type="text/javascript" src="/Scripts/jquery-1.8.2.min.js"></script>
    }
    
    if (ViewBag.jQueryUI != null && ViewBag.jQueryUI)
    {
    <link rel="Stylesheet" type="text/css" href="/Content/jQueryUI/redmond/jquery-ui-1.9.1.custom.min.css" />
    <script type="text/javascript" src="/Scripts/jquery-ui-1.9.1.custom.min.js"></script>
    }
    
    if (ViewBag.Json != null && ViewBag.Json)
    {
    <script type="text/javascript" src="/Scripts/json2.js"></script>
    }
    
    if (ViewBag.Flexigrid != null && ViewBag.Flexigrid)
    {
    <link href="@Url.Content("~/Content/Flexigrid/flexigrid.pack.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery.cookie.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/flexigrid.js")" type="text/javascript"></script>            
    }
    
    if (ViewBag.CKEditor != null && ViewBag.CKEditor)
    {
    <script type="text/javascript" src="/Scripts/CKEditor/ckeditor.js"></script>
    }
    
    if (ViewBag.CKFinder != null && ViewBag.CKFinder)
    {
    <script type="text/javascript" src="/Scripts/CKFinder/ckfinder.js"></script>
    }

    if (ViewBag.Uploadify != null && ViewBag.Uploadify)
    {                                                                
    <link href="@Url.Content("~/Content/Uploadify/uploadify.css")" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/Scripts/jquery.uploadify.min.js"></script>
    }

    if (ViewBag.Global != null && ViewBag.Global)
    {       
    <script type="text/javascript" src="/Scripts/Global.js"></script>
    }

    if (ViewBag.Flow != null && ViewBag.Flow)
    {       
    <script type="text/javascript" src="/Scripts/Flow.js"></script>
    }         

    if (ViewBag.FlowInfo_General != null)
    {                                                                  
    <script type="text/javascript" src="/Scripts/FlowInfo_General.js"></script>
    }

    if (ViewBag.Css != null)
    {
    <link rel="Stylesheet" type="text/css" href="@ViewBag.Css" />
    }

    if (ViewBag.Style != null)
    {
    <style type="text/css">@ViewBag.Style</style>
    } 

    if (ViewBag.Js != null)
    {                                                                  
    <script type="text/javascript" src="@ViewBag.Js"></script>
    }    
}
</head>
<body>
@RenderBody()
</body>
</html>